from django.conf.urls import url
from . import views

urlpatterns = [
    # 获取省的信息
    url(r'^areas/$', views.AreasView.as_view()),
    # 获取市和区县的信息
    url(r'^areas/(?P<pk>\d+)/$', views.AreaView.as_view()),
    # 保存地址
    url(r'^addresses/$', views.AddressView.as_view()),
    # 更新地址
    url(r'^addresses/(?P<pk>\d+)/$', views.AddressView.as_view()),
    # 设置默认地址
    url(r'^addresses/(?P<pk>\d+)/status/$', views.Address1View.as_view()),
]
